home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / mega src / Source / mem.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  725 b   |  31 lines  |  [TEXT/KAHL]

  1. /* ========== the commmand file: ==========
  2.  
  3.     mem.c
  4.     
  5.     Copyright (c) 1993,1994 Newport Software Development
  6.     
  7.     You may distribute unmodified copies of this file for
  8.     noncommercial purposes.  You may use this file as a
  9.     reference when writing your own nShell(tm) commands.
  10.     
  11.     All other rights are reserved.
  12.     
  13.    ========== the commmand file: ========== */
  14.  
  15. #include "nshc.h"
  16.                     
  17. #include "nshc_utl.proto.h"
  18.                     
  19. void main(t_nshc_parms *nshc_parms, t_nshc_calls *nshc_calls)
  20. {
  21.     long    lFreeBytes;
  22.     
  23.     if (nshc_bad_version( nshc_parms, nshc_calls, NSHC_VERSION )) return;
  24.  
  25.     lFreeBytes = FreeMem();    
  26.     nshc_calls->NSH_printf("Free memory = %ld\r",lFreeBytes);
  27.  
  28.     nshc_parms->result = NSHC_NO_ERR;
  29.     nshc_parms->action = nsh_idle;
  30. }
  31.